<?php

if (!defined("_SessionName")) 
    die("Header files cannot be executed.");

$servername = "localhost";
$username = "myfit";
$password = "krTXBaDZibzLCE4G";
$dbname = "myfit";
    
// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
    
// 检测连接
if ($conn->connect_error) {
    die("MySQL 连接失败: " . $conn->connect_error);
} 

// $conn->close(); 

?>